package com.atguigu.order.client;

import com.atguigu.commonutils.nacosclass.service_ucenter.UcenterOrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-ucenter", fallback = OrderUcenterDegradeFeignClient.class)
@Component
public interface OrderUcenterClient {
    @GetMapping("/ucenter/member/getOrderIdMember/{userId}")
    public UcenterOrderVO getOrderIdMember(@PathVariable String userId);
}
